//
//  Adaptor.Screen.swift
//  Adapt
//
//  Created by Flutter on 2021/7/7.
//

import UIKit

public extension Adaptor { enum Screen {} }

private extension Adaptor.Screen {
    static var current: UIScreen { UIScreen.main }
}

public extension Adaptor.Screen {
    static var bounds: CGRect { current.bounds }
    static var width: CGFloat { bounds.width }
    static var height: CGFloat { bounds.height }
    static var scale: CGFloat { current.scale }
    static var brightness: CGFloat {
        get { UIScreen.main.brightness }
        set { UIScreen.main.brightness = newValue }
    }
}

